The following shows all of the operators supported in SIMO.
-A
A.+A
A as it is.A + B
A(i) to B(i) for all i.A and B should have compatible sizes.A - B
B(i) from A(i) for all i.A and B should have compatible sizes.A .* B
A(i) with B(i) for all i.A and B should have compatible sizes.A ./ B
A(i) by B(i) for all i.A and B should have compatible sizes.A .\ B
B(i) by A(i) for all i.A and B should have compatible sizes.A .^ B
A(i) raised to the power of B(i) for all i.A and B should have compatible sizes.A == B
It returns a logical array C.
It checks if A(i) is equal to B(i) for all i.
C(i) is logical 1 if they are equal.C(i) is logical 0 if they are not equal.A and B should have compatible sizes.
A != B or A ~= B
It returns a logical array C.
It checks if A(i) is equal to B(i) for all i.
C(i) is logical 0 if they are equal.C(i) is logical 1 if they are not equal.A and B should have compatible sizes.
A > B
It returns a logical array C.
It checks if A(i) is greater than B(i) for all i.
C(i) is logical 1 if A(i) is greater.C(i) is logical 0 if A(i) is less than or equal to B(i).A and B should have compatible sizes.
A <= B
It returns a logical array C.
It checks if A(i) is smaller than or equal to B(i) for all i.
C(i) is logical 1 if A(i) is smaller than or equal to B(i).C(i) is logical 0 if A(i) is greater.A and B should have compatible sizes.
A < B
It returns a logical array C.
It checks if A(i) is smaller than B(i) for all i.
C(i) is logical 1 if A(i) is smaller.C(i) is logical 0 if A(i) is greater than or equal to B(i).A and B should have compatible sizes.
A >= B
It returns a logical array C.
It checks if A(i) is greater than or equal to B(i) for all i.
C(i) is logical 1 if A(i) is greater than or equal to the B(i).C(i) is logical 0 if A(i) is smaller.A and B should have compatible sizes.
!A or ~A
It returns a logical array C, in which for each i,
C(i) is 0 if A(i) is not 0.C(i) is 1 if A(i) is 0.Both !A and ~A return exactly the same result.
A | B or A || B
It returns a logical array C.
It performs logical OR of A(i) and B(i) for all i.
C(i) is logical 1 if either A(i) or B(i) is non-zero.C(i) is logical 0 if both A(i) and B(i) are 0.A and B should have compatible sizes.
Both | and || operate in a non-short-circuiting fashion.
A & B or A && B
It returns a logical array C.
It performs logical AND of A(i) and B(i) for all i.
C(i) is logical 1 if both A(i) and B(i) are non-zero.C(i) is logical 0 if either A(i) or B(i) is 0.A and B should have compatible sizes.
Both & and && operate in a non-short-circuiting fashion.
It returns a logical array C.
It performs exclusive OR of A(i) and B(i) for all i.
C(i) is logical 1 if one of A(i) and B(i) is zero and the other non-zero.C(i) is logical 0 if both of A(i) and B(i) are zero or both of them non-zero.A and B should have compatible sizes.
XOR is obtained by the built-in function xor().
A'
A. A should be a matrix (two dimensional array). A is complex, it gives the transpose of the conjugates of A.A is real or non-numerical (e.g., structure array), it is the same as A.'.ctranspose(A).A.'
A.A should be a matrix (two dimensional array).transpose(A).A ^ B
A raised to the power B.A should be either a square matrix or scalar.B should always be a scalar.A is a square matrix, B should be a real integer scalar.[1 2;3 4]^2.33) is not supported yet.A ^ B gives the same result as mpower(A, B).A * B
A and B should be A and B.A or B is a scalar, element-wise multiplication, i.e., A.* B is performed instead.b / A
mrdivide() for details.A \ b
mldivide() for details.